/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wo.cput.pattern.abstracts;

/**
 *
 * @author Jameel
 */
public class MammalFactory extends SpeciesFactory{

    @Override
    public Animal getAnimal(String type) {
        if ("dog".equals(type)){
            return new Dog();
        } 
        else {
            return new Cat();
        }
    }
}
